<template>
	<view class="all" <view class="horizontal">
		<view v-for="(item, index) in announcemen" :key="index">
			<view class="bore">
				<view class="text-top" @click="Jump(index)">
					<text type="default">{{item.announcementTitle}}</text>
					<!-- <text type="default" style="float: right;margin-right: 10%;">{{item.createTime}}</text> -->

				</view>
			</view></br>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imger: '../foreground/foreground',
				imgerurl: '',
				announcemen: [],
			}
		},
		onLoad() {
			this.getculture()
		},
		methods: {
			getculture() {
				uni.request({
					url: this.api.getAllAnnouncement,
					method: "GET",
				}).then(data => {
					let [err, res] = data
					this.announcemen = res.data
					console.log(res.data)
				})
			},

			Jump(index) {
				uni.navigateTo({
						url: "../announcement/announcement?data=" + encodeURIComponent(JSON.stringify(this.announcemen[index])),
				})
			}
		}
	}
</script>

<style>
	.all {
		width: 100%;
		height: 100%;
		/* border: solid 1px; */
	}

	.horizontal {
		width: 100%;
	}

	.bored {
		height: ;
		border-top: 1px solid;
		flex-direction: row;
	}

	.image_hone {
		width: 30px;
		height: 35px;
		float: left;
		border-radius: 50%;
	}

	.text-top {
		padding-top: 15px;
		border-top: 1px solid;
	}

	.dianji {
		color: #DD524D;
	}
	.shangchuang {
		text-align: center;
		margin-top: 50px;
	}

	.gonggao {
		text-align: center;
	}
</style>
